'use strict'

class reviewedfalse {
        
    constructor(){
       //this.param = '/:id/:type'
    }

    async list (c) {
        let data = await c.service.model.db_userstep.getreviewedfalse()
        c.send(data,200)
    }

    async get (c) {

        
        // //c.service.imagePath


        // if (c.query.type !== undefined) {
        //     let data = await c.service.model.db_useElife.getStep(c.param.id,c.query.type)
        //     c.send(data)
        // } else {
        //     let data = await c.service.model.db_useElife.getFunc(c.param.id)

        //     c.send(data,200)
        // }

    }
    async post(c){
        let data=JSON.parse(c.body)
        let datas=await c.service.model.db_userstep.getreviewed_false(data.reason,data.id)
        c.send(datas,200)
    }

}

module.exports = reviewedfalse